package com.lilanz.microservice.express.utils.util;

import java.util.Random;

public class RamdomUtils {
    /**
     * @ Description：获取随机时间戳以及其他
     */
    public static String getRandomNumber() {

        String base = "ABC8DEFGH2IJKLMN1PQR0S9TUVW4XY3Zabcd0efghijklm5nopqr6stu7vwxyz";
        Random random = new Random();
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < 10; i++) {
            // 随机数不超过数据长度
            int number = random.nextInt(base.length());
            sb.append(base.charAt(number));
        }
        return sb.toString();
    }
}
